tf.keras.layers.Dense(1, activation="sigmoid") # binary activation output
model.add(Flatten())
model.add(GlobalAveragePooling2D())